/* 
 * File:   User.h
 * Author: Vicky.H
 * Email:  eclipser@163.com
 *
 * Created on 2014年2月20日, 下午8:33
 */

#ifndef CN_VICKY__USER_H
#define	CN_VICKY__USER_H
#include <ostream>

using str32 = char[32];

class CUser {
    friend std::ostream& operator<< (std::ostream& os, const CUser& o);
private:
    str32 username = {0};
    str32 password = {0};
    char age = 0;
public:
    CUser(const char* username, const char* password, char age);
    const char* getUsername() const;
    void setUsername(const char* username);
    
    const char* getPassword() const;
    void setPassword(const char* password);
    
    const char getAge() const;
    void setAge(char age);
};


#endif	/* CN_VICKY__USER_H */

